import {get,post} from "./http";

// 判断管理员是否登录成功
export const getLoginStatus = (params) => post(`admin/login/status`,params);
// 查询所有的歌手
export const getAllSinger=()=> get(`singer/allSinger`);
// 添加歌手
export const setSinger = (params) => post(`singer/add`,params);
// 修改歌手
export const editSinger = (params) => post(`singer/update`,params);
// 删除歌手
export const deleteSinger = (id) => get(`singer/delete?id=${id}`);

// 查询所有的歌曲
export const songOfSingerId=(id)=> get(`song/singer/detail?singerId=${id}`);
export  const editSong=(params)=>post(`song/update`,params);
export const deleteSong=(id)=> get(`song/deleteSong?id=${id}`);

// 查询所有的歌单
export const getAllSongList=()=> get(`songList/allSongList`);
// 添加歌单
export const setSongList = (params) => post(`songList/add`,params);
// 修改歌单
export const editSongList = (params) => post(`songList/update`,params);
// 删除歌单
export const deleteSongList = (id) => get(`songList/delete?id=${id}`);
